//
//  CONSTS.h
//  TaoBaoDianPu
//
//  Created by ZhuoLaiQiang@Gmail.com on 7/5/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//


#define ttid                @"400000_12286611@wgwl_ios_1.0_test"
#define appkey              @"12286611"
#define appSecret           @"5a00881e45217ef1e7eb627fe75ef6d9"

//#define CALL_BACK_URL       @"http://blog.csdn.net/diyagoanyhacker"
#define CALL_BACK_URL       @"http://www.facebook.com"


/**************************API定义*****************************/
//登陆api
#define API_LOGIN                                   @"http://api.m.taobao.com/rest/api2.do?"
#define com_taobao_wireless_mtop_getLoginUrl        @"com.taobao.wireless.mtop.getLoginUrl"
#define com_taobao_client_mtop_getUserSessionKey    @"com.taobao.client.mtop.getUserSessionKey"
#define api_com_taobao_client_sys_autologin         @"com.taobao.client.sys.autologin"

//交易api
#define API                                         @"http://gw.api.taobao.com/router/rest?"

#define taobao_trades_sold_get                      @"taobao.trades.sold.get"
#define taobao_trades_sold_get_element              @"total_fee,status,tid,created,orders.title,orders.num,orders.status,orders.pic_path,num_iid,orders.num_iid"

#define api_taobao_trade_fullinfo_get                   @"taobao.trade.fullinfo.get"
#define api_taobao_trade_fullinfo_get_element           @"seller_nick,buyer_nick,buyer_area,title,type,discount_fee,created,tid,seller_rate,promotion_details,buyer_flag,buyer_rate,status,payment,adjust_fee,post_fee,total_fee,pay_time,end_time,modified,consign_time,buyer_obtain_point_fee,point_fee,real_point_fee,received_payment,commission_fee,buyer_memo,seller_memo,alipay_no,buyer_message,pic_path,num_iid,num,price,buyer_alipay_no,receiver_name,receiver_state,receiver_city,receiver_district,receiver_address,receiver_zip,receiver_mobile,receiver_phone,buyer_email,seller_flag,seller_alipay_no,seller_mobile,seller_phone,seller_name,seller_email,available_confirm_fee,has_post_fee,timeout_action_time,snapshot_url,cod_fee,cod_status,shipping_type,trade_memo,is_3D,buyer_memo,buyer_email,\
orders.title,orders.pic_path,orders.price,orders.num,orders.num_iid,orders.sku_id,orders.refund_status,orders.status,orders.oid,orders.total_fee,orders.payment,orders.discount_fee,orders.adjust_fee,orders.snapshot_url,orders.timeout_action_time,orders.sku_properties_name,orders.item_meal_name,orders.item_meal_id,item_memo,orders.buyer_rate,orders.seller_rate,orders.outer_iid,orders.outer_sku_id,orders.refund_id,orders.seller_type,orders.is_oversold"

#define api_taobao_trade_memo_update                @"taobao.trade.memo.update" //修改和添加备注api
#define api_taobao_trade_receivetime_delay          @"taobao.trade.receivetime.delay"   //延长收货时间api
#define api_taobao_trade_close                      @"taobao.trade.close"

#define api_taobao_logistics_orders_detail_get      @"taobao.logistics.orders.detail.get" //获取单个交易的“物流详情”


/*************************VIEW.TAG************************/
#define MYORDERVIEWINDEXVIEWCONTROLLER_CELL_BACK_GROUND_IMAGE_TAG    101


/*************************ControlCenter.h************************/
#define  CONTROL_CENTER_FILE_NAME @"info"



/************************"Three20UI/TTLauncherView.h"***********/
#define  MAIN_VIEW_ICON_CONFIGURE @"mainViewIconConfigure"




/*************************定义COLR*******************************/
#define  NAVIGATION_TINT_COLOR [UIColor colorWithRed:0.79 green:0.08 blue:0.11 alpha:1.00]



/*************************服务器返回值标志*************************/
#define  SUCCESS                        @"SUCCESS::接口调用成功"
#define  AUTO_LOGIN_SUCCESS_SIGN        @"SUCCESS::调用成功"



/*************************程序中用到的纯文本或者是提示信息***********/
#define ALERT_TITLE                 @"提示"
#define ALERT_MESSAGE               @"服务器忙或升级中，请稍后再试"
#define REQUEST_TOKEN               @"正在获取授权"
#define MBPROGRESSHUD_MESSAGE       @"正在载入..."

/*************************订单状态******************************/
#define  TRADE_NO_CREATE_PAY            @"没有创建支付宝交易"
#define  WAIT_BUYER_PAY                 @"等待买家付款"
#define  WAIT_SELLER_SEND_GOODS         @"等待卖家发货,即:买家已付款"
#define  WAIT_BUYER_CONFIRM_GOODS       @"等待买家确认收货"
#define  TRADE_BUYER_SIGNED             @"买家已签收,货到付款专用"
#define  TRADE_FINISHED                 @"交易成功"
#define  TRADE_CLOSED                   @"退款成功后,交易自动关闭"
#define  TRADE_CLOSED_BY_TAOBAO         @"付款以前,主动关闭的交易"

/**************************交易类型****************************/
/*
 type:
 交易类型列表，同时查询多种交易类型可用逗号分隔。
 默认同时查询guarantee_trade, auto_delivery, ec, cod的4种交易类型的数据 。 
 */

#define fixed                                           @"一口价"
#define auction                                         @"拍卖" 
#define guarantee_trade                                 @"一口价、拍卖"
#define independent_simple_trade                        @"旺店入门版交易"
#define independent_shop_trade                          @"旺店标准版交易" 
#define auto_delivery                                   @"自动发货"
#define ec                                              @"直冲" 
#define cod                                             @"货到付款"
#define game_equipment                                  @"游戏装备"
#define shopex_trade                                    @"ShopEX交易"
#define netcn_trade                                     @"万网交易"
#define external_trade                                  @"统一外部交易"
#define instant_trade                                   @"即时到账"
#define b2c_cod                                         @"大商家货到付款"
#define hotel_trade                                     @"酒店类型交易"
#define super_market_trade                              @"商超交易"
#define super_market_cod_trade                          @"商超货到付款交易"

/***************************评价状态****************************/
#define RATE_UNBUYER                @"买家未评" 
#define RATE_UNSELLER               @"卖家未评"
#define RATE_BUYER_UNSELLER         @"买家已评，卖家未评"
#define RATE_UNBUYER_SELLER         @"买家未评，卖家已评"

/***********************“订单详情页面所包括的操作"*********************/
//2）如果有两个商品，也可以选择只关闭其中一个商品的交易
#define GUAN_BI_JIAO_YI                      @"关闭交易"
#define FA_HUO                              @"发货"
#define XIU_GAI_JIA_GE                      @"修改价格"
#define YAN_CHANG_FA_HUO_SHI_JIAN           @"延长收货时间"
#define BEI_WANG                            @"备忘"


/**********************没有分组的宏定义*******************************/
#define MAI_JIA_MEI_YOU_TIAN_XIE_BEI_ZHU            @"卖家没有填写备忘"
#define MAI_JIA_ZAN_SHI_MEI_YOU_LIU_YAN             @"买家暂时没有留言"
#define GUAN_BI_LI_YOU                              @"掌柜使用“店铺管理专家”iphone客户端关闭此订单"
#define BU_XIAN                                     @"不限"
#define SEARCH_REAULT_PAGE_SIZE                     @"7"
#define WUL_LIU_DETAIL_CELL_DEFAULT_TEXT             @"暂无此信息"

